FROM registry.cn-hangzhou.aliyuncs.com/zyzbp/openjdk:8-jdk

MAINTAINER wangx iamwx@foxmail.com

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone

RUN mkdir -p /msp-service
WORKDIR /msp-service
COPY msp-service.tar.gz msp-service.tar.gz
RUN ["tar","-zxvf","msp-service.tar.gz"]
RUN ["chmod", "+x", "msp-service/msp-service-1.0-SNAPSHOT.jar"]


ENTRYPOINT ["java", "-Xmx512m", "-Djava.security.egd=file:/dev/./urandom", "-Ddruid.mysql.usePingMethod=false", "-jar", "msp-service/msp-service-1.0-SNAPSHOT.jar"]